import request from '@/utils/request';

export async function getProductQualityByPage (params: any) {
    return request('/api/quality/getProductQualityByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addProductQuality (params: any) {
    return request('/api/quality/addProductQuality', {
    method: 'POST',
    data: params,
  });
}

export async function updateProductQuality (params: any) {
    return request('/api/quality/updateProductQuality', {
    method: 'POST',
    data: params,
  });
}

export async function delProductQuality (params: any) {
    return request('/api/quality/delProductQuality', {
    method: 'POST',
    data: params,
  });
}


export async function exportProductQuality(params: any) {
    return request('/api/quality/exportProductQuality', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getProductQualityByPage, addProductQuality, updateProductQuality, delProductQuality, exportProductQuality }
